package com.ssy.lingxi.member.merchant.controller.mobile;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.member.merchant.model.vo.basic.response.MobileMemberSalesInformationVO;
import com.ssy.lingxi.member.merchant.service.mobile.IMobileMemberSalesService;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @menu 微信小程序-业务员相关接口
 * @author 郑小翠
 * @version 2.02.18
 * @date 2022-03-24
 */
@RestController
@RequestMapping("/member/mobile/wechat/applet")
public class MobileWechatAppletMemberSalesController {

    @Resource
    private IMobileMemberSalesService memberSalesService;

    /**
     * 查看业务员详情
     */
    @RequestMapping(value = "/sales/information", method = RequestMethod.GET)
    public Wrapper<MobileMemberSalesInformationVO> getSalesInformation(@RequestHeader HttpHeaders headers) {
        return memberSalesService.getSalesInformation(headers);
    }
}
